package com.juyu.miliao.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 寻豆
 * @author xuanqicheng
 */
@Data
public class BillDetailBeans {
    private Integer id;
    private Long userId;
    /**
     * 寻豆类型 ：1:vip每天增加，2:svip每天增加 3:赠送礼物返还寻豆
     */
    private Integer beansType;
    /**
     * 寻豆值：负数表示减少，正数表示增加
     */
    private Long beans;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    /**
     * 赠送礼物返还寻豆比例
     */
    private int ratio;

    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private LocalDate createDate;

    public BillDetailBeans() {
    }

    public BillDetailBeans(Long userId, Integer beansType, Long beans) {
        this.userId = userId;
        this.beansType = beansType;
        this.beans = beans;
    }
}
